extends ParallaxBackground

@export var speed:float = 100

#@onready var backgroud:Sprite2D = get_node("ParallaxLayer/Background")
#@onready var backgroud:Sprite2D = $"ParallaxLayer/Background"

@onready var parallax_layer:ParallaxLayer = %ParallaxLayer

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	parallax_layer.motion_offset.x -= delta * speed
